package datamanagers;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class testVoti {

	/**
	 * @param args
	 * @throws ConfigurationException
	 */
	public static void main(String[] args) throws DataManagerException {

		int userID = 154321;
		Voti voti = new Voti();
		try {
			System.out.println(voti.mediaAssegnata(userID));
			Map<Float, Integer> votiMap = new HashMap<Float, Integer>();
			votiMap = voti.recuperoUserIDVotatoProfileID(userID);
			Iterator it = votiMap.entrySet().iterator();
		    while (it.hasNext()) {
		    String profileID = it.next().toString();
		    String rating = votiMap.get(profileID).toString();
		    System.out.println("ProfileID:"+ profileID+ " rating:"+rating);
		    }
		} catch (DataManagerException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
